package cn.itsource.hrm.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "hrm",type = "course")
@Data
public class CourseDoc {
    @Id
    private Long id;

    @Field(type = FieldType.Keyword,store = true)
    private String name;

    @Field(type = FieldType.Keyword,store = true)
    private String courseType;

    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer = "ik_smart",store = true)
    private String intro;

}
